#ifndef CAMERA_H
#define CAMERA_H

#include <QWidget>
#include "AbstractLayer/Camera/abstractcamera.h"
class Camera : public AbstractCamera
{
    Q_OBJECT
public:
    void setCamera(int index) override;
    void setShowLabel(QLabel *label) override;
    QList<QCameraInfo> getCameraInfo() override;
    QString getImgName() override;
    void captureImg() override;
    void initCamera(QLabel*) override;
    void destroyCamera() override;
    void stopCamera() override;
    void startCamera() override;
signals:


public slots:


private:
    QCamera               *camera;        //使用这个类，实例化出来，用指针接收
    QList<QCameraInfo>    infolist;       //用于保存可用摄像头
    QCameraViewfinder     *viewfinder;
    QCameraImageCapture   *imageCapture;
    QCameraInfo info;
};

#endif // CAMERA_H
